<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ExpedienteViewDlg" widgetVar="ExpedienteViewDialog" modal="true" resizable="false"  appendTo="@(body)" header="#{myBundle.ViewExpedienteTitle}" closeOnEscape="true">

            <h:form id="ExpedienteViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" columnClasses="column" rendered="#{expedienteController.selected != null}">

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_id}"/>
                        <h:outputText value="#{expedienteController.selected.id}" title="#{myBundle.ViewExpedienteTitle_id}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_partidoId}"/>
                        <h:outputText value="#{expedienteController.selected.partido}" title="#{myBundle.ViewExpedienteTitle_partidoId}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_alcance}"/>
                        <h:outputText value="#{expedienteController.selected.alcance}" title="#{myBundle.ViewExpedienteTitle_alcance}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_cuerpo}"/>
                        <h:outputText value="#{expedienteController.selected.cuerpo}" title="#{myBundle.ViewExpedienteTitle_cuerpo}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_extracto}"/>
                        <h:outputText value="#{expedienteController.selected.extracto}" title="#{myBundle.ViewExpedienteTitle_extracto}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_fechaInicio}"/>
                        <h:outputText value="#{expedienteController.selected.fechaInicio}" title="#{myBundle.ViewExpedienteTitle_fechaInicio}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_tipoExpediente}"/>
                        <h:outputText value="#{expedienteController.selected.tipoExpediente}" title="#{myBundle.ViewExpedienteTitle_tipoExpediente}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_numero}"/>
                        <h:outputText value="#{expedienteController.selected.numero}" title="#{myBundle.ViewExpedienteTitle_numero}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_tipoExpedienteId}"/>
                        <h:outputText value="#{expedienteController.selected.tipoExpedienteId.id}"/>

                        <h:outputText value="#{myBundle.ViewExpedienteLabel_barrioId}"/>
                        <h:outputText value="#{expedienteController.selected.barrioId.id}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="ExpedienteViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
